import { defineStore } from "pinia";
import { ref } from "vue";
export const useMessageStore = defineStore('userIds', ()=>{
    const userIds = ref(null)

    const setUserIds = (newUserIds) => {
        userIds.value = newUserIds
    }
    const getUserIds = () => {
        return userIds.value
    }
    const removeUserIds = () => {
        userIds.value = null
    }

    return {
        userIds,
        setUserIds,
        getUserIds,
        removeUserIds
    }
} ,{
    persist: true
}
)